package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.DeliveryAddress;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DeliveryAddressService {

    public List<DeliveryAddress> listDeliveryAddressMapperByUserId(String userId);

    /**
     * 根据id查询
     * @param daId
     * @return
     */

    public DeliveryAddress getDeliveryAddressById(Integer daId);

    /**
     * 添加
     * @param deliveryAddress
     * @return
     */

    public int saveDeliveryAddress(DeliveryAddress deliveryAddress);

    /**
     * 修改
     * @param deliveryAddress
     * @return
     */

    public int updateDeliveryAddress(DeliveryAddress deliveryAddress);

    /**
     * 删除
     * @param deliveryAddress
     * @return
     */

    public int deleteDeliveryAddress (DeliveryAddress deliveryAddress);
}
